import request from '@/utils/request'
import type { reqTag } from './type'
// 枚举接口
enum API {
  HOME_TAG = '/home/tag',
  HOME_ARTICLE = '/home/articleInfo',
  HOME_OTHER = '/home/other',
  HOME_GET_AVATAR = '/user/getAvatar',
}
// 获取tag列表
export const getTagList = () => request.get<any, reqTag>(API.HOME_TAG)
// 获取文章列表
export const getArticleList = (data: any) => request.get<any, any>(API.HOME_ARTICLE, { params: data })
// 获取其他列表
export const getOtherList = () => request.get<any, any>(API.HOME_OTHER)
// 获取头像
export const getAvatar = () => request.get<any, any>(API.HOME_GET_AVATAR)
